package com.aauedu.springboot;

import com.aauedu.springboot.bean.Dog;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication(scanBasePackages="com.aauedu.springboot")
public class MainApp {
    public static void main(String[] args) {

        //启动springboot应用程序/项目
        //question：当我们执行run方法时，怎么就启动我们的内置的Tomcat?
        //在分析run方法的底层机制的基础上，我们自己尝试实现
        ConfigurableApplicationContext ioc = SpringApplication.run(MainApp.class, args);

//        Dog dogBean = ioc.getBean(Dog.class);
//        System.out.println(dogBean);
        /**
         *
         * 这里我们开始Debug之旅
         */

    }

}
